An example Analysisthe properties of the sample picture;OriginalThe red line is the end of the file header;The second red line is the end of the bitmap information header;Use Windows Paint to take the color of the point (2,2) pixels; the paint is
[From network] The format of the BMP file storage structure can be defined in wingdi. h file in windows. A bmp file consists of four parts: the bitmap file header, bitmap information header, palette, and image data, as shown in table 5-1. Table 5-
Bitmap Bitmapinfoheader and Bitmapfileheader:First look at bitmapinfoheader, write only a few majorBisize contains the size of the struct (including the color table)Biwidth and Biheight, respectively, are the length and width of the pictureBiplanes
Usually in the use of the computer will use the Optimization tool or the right key to repair the system to optimize and clean up, but in the repair if the operation is not appropriate, the system may be commonly used to optimize the function, such
Http://freeze001.blog.163.com/blog/static/3288535200911724942399/
BMP is an image file format unrelated to hardware devices. It is also a standard bitmap format that we often see in Windows on PCs. It is widely used. It uses a bit ing storage
' Get picture width and height of class, support Jpg,gif,png,bmp 'Class Imgwhinfo Dim ASOPrivate Sub Class_InitializeSet aso=server.createobject ("ADODB. Stream ")ASO. Mode=3ASO. Type=1ASO. OpenEnd SubPrivate Sub Class_TerminateErr.ClearSet
BITMAPINFOHEADER and BITMAPFILEHEADER:
First, let's look at BITMAPINFOHEADER and write only a few main
BiSize contains the size of this struct (including the color table)
BiWidth and biHeight are the length and width of the image,
Class imgwhinfo '': class for retrieving image width and height. jpg, GIF, PNG, and BMP are supported.
Dim Aso
Private sub class_initialize
Set Aso = server. Createobject ("ADODB. Stream ")
Aso. mode = 3
Aso. type = 1
Aso. Open
End sub
Private sub
Ado|stream Upload a picture or display SWF when you want to get its height and width
The basic principle is to use ADODB.stream to read binary files and then parse them, and then return an array
The first element is type (BMP JPG PNG GIF SWF)
The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.